#ifndef ANDROID_MYTEST_HAL_INTERFACE_H
#define ANDROID_MYTEST_HAL_INTERFACE_H
#include <stdint.h>
#include <strings.h>
#include <sys/cdefs.h>
#include <sys/types.h>

#include <hardware/hardware.h>

#define MYTEST_HARDWARE_MODULE_ID "mytest"

#define MYTEST_CONTROLLER "mytest"

typedef struct mytest_module_t {
    struct hw_module_t common;
} mytest_module_t;

typedef struct mytest_device_t {
    struct hw_device_t common;
    int (*addTest)(const int a, const int b);
} mytest_device_t;

// static inline int mytest_open(const struct hw_module_t* module,
//         mytest_device_t** dev) {
//     return module->methods->open(module, MYTEST_CONTROLLER,
//         (struct hw_device_t**) dev);
// }

// static inline int mytest_close(mytest_device_t* dev) {
//     return dev->common.close(&dev->common);
// }

#endif // ANDROID_MYTEST_HAL_INTERFACE_H
